<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <title>基础数据管理-职能中心</title>
    <script src="/scripts/boot.js"></script>
</head>
<body class="bg-white">
<div id="addForm">
    <div class="title-info mb-20"><span>基本信息</span></div>
    <table class="table-bg" border="0" cellpadding="1" cellspacing="1" style="width:100%;table-layout:fixed;">
        <colgroup>
            <col width="135px"></col>
            <col width="50%"></col>
            <col width="135px"></col>
            <col width="50%"></col>
        </colgroup>
        <tr>
            <td class="text-titlebg">编码</td>
            <td>
                <div class="color-66 input-div" id="code"></div>
            </td>
            <td class="text-titlebg">名称</td>
            <td>
                <div class="color-66 input-div" id="name"></div>
            </td>
        </tr>
        <tr>
            <td class="text-titlebg noEmpty">备注</td>
            <td colspan="3">
                <div class="color-66 textarea-div" id="remark"></div>
            </td>
        </tr>
    </table>
    <div class="chose-toolbar">
        <a class="chose-button" onclick="CloseWindow('close')">关闭</a>
        <!--<a class="chose-button save-button" onclick="view.save()">保存</a>-->
    </div>
</div>
<div id="mask" class="mask-hidden"></div>
<script type="text/javascript">
    var view = {
        init: function () {
            mini.parse();
        },
        //    数据展示
        SetData: function (data) {
            data = mini.clone(data);
            $.ajax({
                url:"/functionOffice/info?id=" + data.id,
                type: "post",
                success: function (text) {
                    //跨页面传递的数据对象，克隆后才可以安全使用
                    var text = $.parseJSON(text);
                    var datas = mini.decode(text.body[0]);   //反序列化成对象
                    $.each(datas,function (key,value) {
                        $("#"+key).html(value);
                    });
                },
                error:function (errorMsg) {
                    common.prompt(errorMsg.message);
                }
            });
        }
    };
    view.init();
</script>
</body>
</html>